package com.itheima.customer.service;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.itheima.customer.domain.BaseDict;
import com.itheima.customer.domain.Customer;

/**
 * 客户的业务层接口
 * @author Administrator
 *
 */
public interface ICustomerService {

	/**
	 * 保存客户
	 * @param customer
	 */
	void addCustomer(Customer customer);
	
	/**
	 * 查找所有客户
	 * @param dCriteria
	 * @return
	 */
	List<Customer> findAllCustomer(DetachedCriteria dCriteria);

	Customer findCustomer(Customer customer);

	void update(Customer customer);

	void delete(Customer customer);

	List<BaseDict> findCustSources();

	List<BaseDict> findCustLevels();

	BaseDict findBaseDictById(String custSourceId);

	List<Customer> findAllCustomers();

	Customer findCustomerById(Long custId);
}
